package com.edu.zju.scs.panacea.entity.plan;

/**
 * @Author: Yue Liang
 * @Date: 2019-01-05 17:04
 */
public class Material {
    /**
     * 素材ID
     */
    private Long id;

    /**
     * 素材所属的任务
     */
    private Long taskId;

    /**
     * 素材类型
     */
    private Integer type;

    /**
     * 素材对应的模板
     */
    private Long templateId;

    /**
     * 播放时长，以5秒为单位
     */
    private Integer seconds;

    /**
     * 素材链接
     */
    private String url;

    /**
     * 素材状态。0：未审核；1：审核成功；2：审核失败
     */
    private Integer state;

    /**
     * 备注，主要用于说明失败原因
     */
    private String remark;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getSeconds() {
        return seconds;
    }

    public void setSeconds(Integer seconds) {
        this.seconds = seconds;
    }

    @Override
    public String toString() {
        return "Material{" +
                "id=" + id +
                ", taskId=" + taskId +
                ", templateId=" + templateId +
                ", url='" + url + '\'' +
                ", state=" + state +
                ", remark='" + remark + '\'' +
                '}';
    }
}
